home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / bmpmnu / bmpmnu.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-03-03  |  7.2 KB  |  250 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H00FFFFFF&
  4.    Caption         =   "Other fonts in menu"
  5.    ClientHeight    =   2940
  6.    ClientLeft      =   1290
  7.    ClientTop       =   1905
  8.    ClientWidth     =   4155
  9.    FillColor       =   &H00FFFFFF&
  10.    ForeColor       =   &H00C0C0C0&
  11.    Height          =   3630
  12.    Icon            =   BMPMNU.FRX:0000
  13.    Left            =   1230
  14.    LinkTopic       =   "Form1"
  15.    MaxButton       =   0   'False
  16.    ScaleHeight     =   2940
  17.    ScaleWidth      =   4155
  18.    Top             =   1275
  19.    Width           =   4275
  20.    Begin Line Line2 
  21.       X1              =   1890
  22.       X2              =   2295
  23.       Y1              =   1110
  24.       Y2              =   1110
  25.    End
  26.    Begin Line Line1 
  27.       BorderWidth     =   2
  28.       Index           =   3
  29.       X1              =   210
  30.       X2              =   3990
  31.       Y1              =   525
  32.       Y2              =   525
  33.    End
  34.    Begin Label Label6 
  35.       Caption         =   "Jerome Frossard && Ralf Zumbrunn"
  36.       Height          =   225
  37.       Left            =   210
  38.       TabIndex        =   6
  39.       Top             =   210
  40.       Width           =   3795
  41.    End
  42.    Begin Line Line1 
  43.       BorderWidth     =   2
  44.       Index           =   1
  45.       X1              =   210
  46.       X2              =   3990
  47.       Y1              =   1470
  48.       Y2              =   1470
  49.    End
  50.    Begin Line Line1 
  51.       BorderWidth     =   2
  52.       Index           =   0
  53.       X1              =   210
  54.       X2              =   3990
  55.       Y1              =   1890
  56.       Y2              =   1890
  57.    End
  58.    Begin Label txtWarning 
  59.       BackColor       =   &H00FFFFFF&
  60.       BackStyle       =   0  'Transparent
  61.       Caption         =   "WARNING: Quit the program with the Visual Basic ""stop button"" may cause the loss of a large amount of resource !"
  62.       ForeColor       =   &H000000FF&
  63.       Height          =   750
  64.       Left            =   210
  65.       TabIndex        =   5
  66.       Top             =   2100
  67.       Width           =   3900
  68.    End
  69.    Begin Label Label5 
  70.       BackStyle       =   0  'Transparent
  71.       Caption         =   "CompuServe ID: 75240,664"
  72.       Height          =   225
  73.       Left            =   210
  74.       TabIndex        =   4
  75.       Top             =   1575
  76.       Width           =   2850
  77.    End
  78.    Begin Label Label4 
  79.       BackColor       =   &H00FFFFFF&
  80.       BackStyle       =   0  'Transparent
  81.       Caption         =   "SWITZERLAND"
  82.       Height          =   225
  83.       Left            =   1890
  84.       TabIndex        =   3
  85.       Top             =   1155
  86.       Width           =   1380
  87.    End
  88.    Begin Label Label3 
  89.       BackColor       =   &H00FFFFFF&
  90.       BackStyle       =   0  'Transparent
  91.       Caption         =   "1723 Marly 1"
  92.       Height          =   225
  93.       Left            =   210
  94.       TabIndex        =   2
  95.       Top             =   1155
  96.       Width           =   1335
  97.    End
  98.    Begin Label Label2 
  99.       BackColor       =   &H00FFFFFF&
  100.       BackStyle       =   0  'Transparent
  101.       Caption         =   "P.O. Box 193"
  102.       Height          =   225
  103.       Left            =   210
  104.       TabIndex        =   1
  105.       Top             =   945
  106.       Width           =   1725
  107.    End
  108.    Begin Label Label1 
  109.       BackColor       =   &H00FFFFFF&
  110.       BackStyle       =   0  'Transparent
  111.       Caption         =   "PTAHSoft"
  112.       Height          =   225
  113.       Left            =   210
  114.       TabIndex        =   0
  115.       Top             =   735
  116.       Width           =   960
  117.    End
  118.    Begin Image imgMenu 
  119.       Height          =   585
  120.       Index           =   0
  121.       Left            =   2250
  122.       Picture         =   BMPMNU.FRX:0302
  123.       Top             =   600
  124.       Width           =   930
  125.    End
  126.    Begin Menu Main 
  127.       Caption         =   "File"
  128.       Index           =   1
  129.       Begin Menu Fichier 
  130.          Caption         =   "Open"
  131.          Index           =   11
  132.       End
  133.       Begin Menu Fichier 
  134.          Caption         =   "Save"
  135.          Index           =   12
  136.       End
  137.       Begin Menu Fichier 
  138.          Caption         =   "Safe as..."
  139.          Index           =   13
  140.       End
  141.       Begin Menu Fichier 
  142.          Caption         =   "Close"
  143.          Index           =   14
  144.       End
  145.       Begin Menu File 
  146.          Caption         =   "-"
  147.          Index           =   15
  148.       End
  149.       Begin Menu File 
  150.          Caption         =   "Exit"
  151.          Index           =   16
  152.       End
  153.    End
  154.    Begin Menu Main 
  155.       Caption         =   "Edit"
  156.       Index           =   2
  157.       Begin Menu Edit 
  158.          Caption         =   "Cut"
  159.          Index           =   21
  160.       End
  161.       Begin Menu Edit 
  162.          Caption         =   "Copy"
  163.          Index           =   22
  164.       End
  165.       Begin Menu Edit 
  166.          Caption         =   "Past"
  167.          Enabled         =   0   'False
  168.          Index           =   23
  169.       End
  170.       Begin Menu Edit 
  171.          Caption         =   "Delete"
  172.          Enabled         =   0   'False
  173.          Index           =   24
  174.       End
  175.    End
  176.    Begin Menu Main 
  177.       Caption         =   "Option"
  178.       Index           =   3
  179.       Begin Menu Option 
  180.          Caption         =   "Environment..."
  181.          Index           =   31
  182.       End
  183.       Begin Menu Option 
  184.          Caption         =   "Color"
  185.          Index           =   32
  186.          Begin Menu Color 
  187.             Caption         =   "Red"
  188.             Index           =   321
  189.          End
  190.          Begin Menu Color 
  191.             Caption         =   "Green"
  192.             Index           =   322
  193.          End
  194.          Begin Menu Color 
  195.             Caption         =   "Blue"
  196.             Index           =   323
  197.          End
  198.          Begin Menu Color 
  199.             Caption         =   "Black"
  200.             Index           =   324
  201.          End
  202.       End
  203.    End
  204.    Begin Menu Main 
  205.       Caption         =   "Help"
  206.       Index           =   4
  207.       Begin Menu Help 
  208.          Caption         =   "About..."
  209.          Index           =   41
  210.       End
  211.    End
  212. Dim TxtColor(4) As Long
  213. Sub Color_Click (Index As Integer)
  214.     Color(321).Checked = False
  215.     Color(322).Checked = False
  216.     Color(323).Checked = False
  217.     Color(324).Checked = False
  218.     Color(Index).Checked = True
  219.     txtWarning.ForeColor = TxtColor(Index - 321)
  220. End Sub
  221. Sub Fichier_Click (Index As Integer)
  222.     Select Case Index
  223.         Case 11
  224.             Fichier(Index).Checked = Not Fichier(Index).Checked
  225.             Fichier(12).Enabled = Not Fichier(12).Enabled
  226.             Fichier(13).Enabled = Not Fichier(13).Enabled
  227.             Fichier(14).Enabled = Not Fichier(14).Enabled
  228.     End Select
  229. End Sub
  230. Sub File_Click (Index As Integer)
  231.     Unload Form1
  232. End Sub
  233. Sub Form_Load ()
  234.     Dim hWnd As Integer
  235.     TxtColor(0) = RGB(255, 0, 0)
  236.     TxtColor(1) = RGB(0, 255, 0)
  237.     TxtColor(2) = RGB(0, 0, 255)
  238.     TxtColor(3) = RGB(0, 0, 0)
  239.     Call Color_Click(321)
  240.     hWnd = Form1.hWnd
  241.     Call TranslateAllMenu(hWnd, "Times New Roman")
  242.     Show
  243. End Sub
  244. Sub Form_Unload (Cancel As Integer)
  245.     Call CleanBitmapMenu
  246. End Sub
  247. Sub Help_Click (Index As Integer)
  248.     frmAbout.Show 1
  249. End Sub
  250.